package com.sjtu.feign;

import com.sjtu.web.Result;
import com.sjtu.web.form.JobRerunForm;
import com.sjtu.web.search.JobRunHistorySearch;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * nerine
 * 2/2/2020
 */
@FeignClient(contextId = "run-history", name = "SERVER-CORE")
public interface JobRunHistoryFeign {
    String PREFIX = "/core/run-history";
    @PostMapping(PREFIX + "/list")
    Result<?> list(@RequestBody JobRunHistorySearch search);
    @PostMapping(PREFIX + "/rerun")
    Result<?> rerun(@RequestBody JobRerunForm form);
}
